<?php 
namespace Home\Controller;
use \Think\Controller;
//公共控制器
class HomeController extends EmptyController
{
    public function _empty()
    {
        $this->display('Notfound/index');
    }
    public function _initialize(){
        $cate = M('category')->where("display='1' AND path LIKE '0,'")->limit(1,3)->select();
        $data = M('category')->where("display='1' AND path LIKE '0,1,'")->select();
        // v($cate);
        // v($data);
        $this->assign('category',$data);
        $this->assign('cate',$cate);
    }
}